home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / mkmf / RCS / Makefile.kernel,v < prev    next >
Makefile  |  1992-06-10  |  12KB  |  641 lines

  1. head     1.21;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.21
  10. date     92.06.10.13.04.32;  author jhh;  state Exp;
  11. branches ;
  12. next     1.20;
  13.  
  14. 1.20
  15. date     92.01.06.12.40.53;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.19;
  18.  
  19. 1.19
  20. date     91.12.13.13.32.27;  author jhh;  state Exp;
  21. branches ;
  22. next     1.18;
  23.  
  24. 1.18
  25. date     91.04.11.12.55.14;  author kupfer;  state Exp;
  26. branches ;
  27. next     1.17;
  28.  
  29. 1.17
  30. date     90.03.12.23.28.19;  author jhh;  state Exp;
  31. branches ;
  32. next     1.16;
  33.  
  34. 1.16
  35. date     89.10.09.21.27.42;  author rab;  state Exp;
  36. branches ;
  37. next     1.15;
  38.  
  39. 1.15
  40. date     89.08.21.16.23.40;  author mendel;  state Exp;
  41. branches ;
  42. next     1.14;
  43.  
  44. 1.14
  45. date     89.08.18.11.21.27;  author douglis;  state Exp;
  46. branches ;
  47. next     1.13;
  48.  
  49. 1.13
  50. date     89.08.17.11.14.42;  author douglis;  state Exp;
  51. branches ;
  52. next     1.12;
  53.  
  54. 1.12
  55. date     89.04.06.21.40.14;  author jhh;  state Exp;
  56. branches ;
  57. next     1.11;
  58.  
  59. 1.11
  60. date     88.12.04.12.36.44;  author ouster;  state Exp;
  61. branches ;
  62. next     1.10;
  63.  
  64. 1.10
  65. date     88.07.20.14.33.18;  author douglis;  state Exp;
  66. branches ;
  67. next     1.9;
  68.  
  69. 1.9
  70. date     88.06.27.10.20.58;  author douglis;  state Exp;
  71. branches ;
  72. next     1.8;
  73.  
  74. 1.8
  75. date     88.06.15.15.18.35;  author ouster;  state Exp;
  76. branches ;
  77. next     1.7;
  78.  
  79. 1.7
  80. date     88.06.06.08.49.44;  author ouster;  state Exp;
  81. branches ;
  82. next     1.6;
  83.  
  84. 1.6
  85. date     88.06.05.17.42.21;  author ouster;  state Exp;
  86. branches ;
  87. next     1.5;
  88.  
  89. 1.5
  90. date     88.05.01.16.45.39;  author deboor;  state Exp;
  91. branches ;
  92. next     1.4;
  93.  
  94. 1.4
  95. date     88.04.29.18.29.00;  author deboor;  state Exp;
  96. branches ;
  97. next     1.3;
  98.  
  99. 1.3
  100. date     88.03.31.17.14.09;  author deboor;  state Exp;
  101. branches ;
  102. next     1.2;
  103.  
  104. 1.2
  105. date     88.03.24.20.23.15;  author deboor;  state Exp;
  106. branches ;
  107. next     1.1;
  108.  
  109. 1.1
  110. date     88.03.18.15.04.45;  author deboor;  state Exp;
  111. branches ;
  112. next     ;
  113.  
  114.  
  115. desc
  116. @Makefile template for kernel source directories
  117. @
  118.  
  119.  
  120. 1.21
  121. log
  122. @make sure all makefiles include TYPE
  123. @
  124. text
  125. @#
  126. # Prototype Makefile for kernel modules.
  127. #
  128. # This Makefile is automatically generated.
  129. # DO NOT EDIT IT OR YOU MAY LOSE YOUR CHANGES.
  130. #
  131. # Generated from @@(TEMPLATE)
  132. # @@(DATE)
  133. #
  134. # For more information, refer to the mkmf manual page.
  135. #
  136. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.20 92/01/06 12:40:53 kupfer Exp $ SPRITE (Berkeley)
  137. #
  138. # Allow mkmf
  139.  
  140. ALLSRCS        = @@(ALLSRCS)
  141.  
  142. ALLHDRS        = @@(ALLHDRS)
  143.  
  144. LINTLIBS    = dbg.ln dev.ln fs.ln fscache.ln fsconsist.ln fsdm.ln fsio.ln \
  145.           fslcl.ln fspdev.ln fsprefix.ln fsrmt.ln fsutil.ln libc.ln \
  146.           lfs.ln main.ln mem.ln net.ln ofs.ln proc.ln prof.ln mach.ln \
  147.           raid.ln raid.null.ln recov.ln rpc.ln \
  148.           sched.ln sig.ln sys.ln sync.ln timer.ln utils.ln vm.ln 
  149.  
  150. MACHINES    = @@(MACHINES)
  151. MAKEFILE    = @@(MAKEFILE)
  152. NAME        = @@(NAME)
  153. PUBHDRS        = @@(PUBHDRS)
  154. SYSMAKEFILE    = kernel.mk
  155. DISTDIR         ?= @@(DISTDIR)
  156. TYPE        = @@(TYPE)
  157. #include    <settm.mk>
  158.  
  159. #if exists($(HOME)/kernel.mk)
  160. #include "$(HOME)/kernel.mk"
  161. #endif
  162.  
  163. #if exists($(TM).md/md.mk)
  164. #include    "$(TM).md/md.mk"
  165. #endif
  166.  
  167. #if exists(local.mk)
  168. #include     "local.mk"
  169. #else
  170. #include    <$(SYSMAKEFILE)>
  171. #endif
  172.  
  173. #if exists($(DEPFILE))
  174. #include    "$(DEPFILE)"
  175. #endif
  176. @
  177.  
  178.  
  179. 1.20
  180. log
  181. @Add sig.ln to LINTLIBS.
  182. @
  183. text
  184. @d12 1
  185. a12 1
  186. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.19 91/12/13 13:32:27 jhh Exp Locker: kupfer $ SPRITE (Berkeley)
  187. d31 2
  188. a33 1
  189. DISTDIR         ?= @@(DISTDIR)
  190. @
  191.  
  192.  
  193. 1.19
  194. log
  195. @added ALLHDRS variable.  Updated LINTLIBS.
  196. @
  197. text
  198. @d12 1
  199. a12 1
  200. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.18 91/04/11 12:55:14 kupfer Exp $ SPRITE (Berkeley)
  201. d24 1
  202. a24 1
  203.           sched.ln sys.ln sync.ln timer.ln utils.ln vm.ln 
  204. @
  205.  
  206.  
  207. 1.18
  208. log
  209. @Flush DEFTARGET: the default target is now determined by a pmake
  210. library file.
  211. @
  212. text
  213. @d12 1
  214. a12 1
  215. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.17 90/03/12 23:28:19 jhh Exp Locker: kupfer $ SPRITE (Berkeley)
  216. d17 3
  217. d22 2
  218. a23 1
  219.           main.ln mem.ln net.ln proc.ln prof.ln mach.ln rpc.ln \
  220. @
  221.  
  222.  
  223. 1.17
  224. log
  225. @added the libc module
  226. @
  227. text
  228. @d12 1
  229. a12 1
  230. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.16 89/10/09 21:27:42 rab Exp Locker: jhh $ SPRITE (Berkeley)
  231. d27 1
  232. a27 1
  233. TM                 ?= @@(DEFTARGET)
  234. @
  235.  
  236.  
  237. 1.16
  238. log
  239. @Modifications for distribution.
  240. @
  241. text
  242. @d12 1
  243. a12 1
  244. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.15 89/08/21 16:23:40 mendel Exp Locker: rab $ SPRITE (Berkeley)
  245. d18 3
  246. a20 3
  247.           fslcl.ln fspdev.ln fsprefix.ln fsrmt.ln fsutil.ln main.ln \
  248.           mem.ln net.ln proc.ln prof.ln mach.ln rpc.ln sched.ln \
  249.           sys.ln sync.ln timer.ln utils.ln vm.ln libc.ln
  250. @
  251.  
  252.  
  253. 1.15
  254. log
  255. @Added new fs* modules
  256. @
  257. text
  258. @d12 1
  259. a12 1
  260. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.14 89/08/18 11:21:27 douglis Exp Locker: mendel $ SPRITE (Berkeley)
  261. d28 1
  262. @
  263.  
  264.  
  265. 1.14
  266. log
  267. @another change for TM -- use single machine if it exists, else \ds3100
  268. @
  269. text
  270. @d12 1
  271. a12 1
  272. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.12 89/04/06 21:40:14 jhh Exp Locker: douglis $ SPRITE (Berkeley)
  273. d17 5
  274. a21 3
  275. LINTLIBS    = dbg.ln dev.ln fs.ln main.ln mem.ln net.ln proc.ln prof.ln \
  276.           mach.ln rpc.ln sched.ln sys.ln sync.ln timer.ln utils.ln  \
  277.           vm.ln libc.ln
  278. @
  279.  
  280.  
  281. 1.13
  282. log
  283. @removed DEFTARGET -- we use $MACHINE now
  284. @
  285. text
  286. @d25 1
  287. a25 1
  288. TM                 ?= $(MACHINE)
  289. @
  290.  
  291.  
  292. 1.12
  293. log
  294. @added abilty to make specific machine types
  295. @
  296. text
  297. @d12 1
  298. a12 1
  299. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.11 88/12/04 12:36:44 ouster Exp $ SPRITE (Berkeley)
  300. d25 1
  301. a25 1
  302. TM                 ?= @@(DEFTARGET)
  303. @
  304.  
  305.  
  306. 1.11
  307. log
  308. @Final (?) upgrades to kick in new C library.
  309. @
  310. text
  311. @d12 1
  312. a12 1
  313. # $Header: /sprite/lib/mkmf/RCS/Makefile.kernel,v 1.10 88/07/20 14:33:18 douglis Exp Locker: ouster $ SPRITE (Berkeley)
  314. d26 4
  315. @
  316.  
  317.  
  318. 1.10
  319. log
  320. @put in a couple of spaces in front of mach.ln and vm.ln in
  321. order to get sed to match the " $module.ln" pattern when removing the
  322. current module from the list of lintlibs.
  323. @
  324. text
  325. @a3 3
  326. # The default operation is to make the object file for the machine-type
  327. # named in the TM variable.
  328. #
  329. d12 1
  330. a12 1
  331. # $Header: Makefile.kernel,v 1.9 88/06/27 10:20:58 douglis Exp $ SPRITE (Berkeley)
  332. a15 3
  333. MODULE        = @@(MODULE)
  334. MACHINES    = @@(MACHINES)
  335. TM                 ?= @@(DEFTARGET)
  336. a16 7
  337. SRCS        =
  338. HDRS        =
  339. OBJS        =
  340. CLEANOBJS    =
  341. PUBHDRS        = @@(PUBHDRS)
  342. MAKEFILE    = @@(MAKEFILE)
  343.  
  344. d20 4
  345. a23 3
  346. CFLAGS        = -g
  347. CTFLAGS        = -wt
  348.  
  349. d25 1
  350. @
  351.  
  352.  
  353. 1.9
  354. log
  355. @changed sun.ln to mach.ln.
  356. @
  357. text
  358. @d15 1
  359. a15 1
  360. # $Header: Makefile.kernel,v 1.8 88/06/15 15:18:35 ouster Exp $ SPRITE (Berkeley)
  361. d31 2
  362. a32 2
  363.         mach.ln rpc.ln sched.ln sys.ln sync.ln timer.ln utils.ln  \
  364.         vm.ln libc.ln
  365. @
  366.  
  367.  
  368. 1.8
  369. log
  370. @Typo.
  371. @
  372. text
  373. @d15 1
  374. a15 1
  375. # $Header: Makefile.kernel,v 1.7 88/06/06 08:49:44 ouster Exp $ SPRITE (Berkeley)
  376. d31 2
  377. a32 2
  378.         rpc.ln sched.ln sun.ln sys.ln sync.ln timer.ln utils.ln vm.ln \
  379.         libc.ln
  380. @
  381.  
  382.  
  383. 1.7
  384. log
  385. @Trivial typo.
  386. @
  387. text
  388. @d15 1
  389. a15 1
  390. # $Header: Makefile.kernel,v 1.6 88/06/05 17:42:21 ouster Exp $ SPRITE (Berkeley)
  391. d43 1
  392. a43 1
  393. #include     "kernel.mk"
  394. @
  395.  
  396.  
  397. 1.6
  398. log
  399. @Changed kernel stuff to parallel commands and library.
  400. @
  401. text
  402. @d2 1
  403. a2 1
  404. # Pprototype Makefile for kernel modules.
  405. d15 1
  406. a15 1
  407. # $Header: Makefile.kernel,v 1.5 88/05/01 16:45:39 deboor Exp $ SPRITE (Berkeley)
  408. @
  409.  
  410.  
  411. 1.5
  412. log
  413. @Fixed to correspond to new *.md syntax
  414. @
  415. text
  416. @d2 1
  417. a2 4
  418. # This is the prototype Makefile for kernel modules. The resulting
  419. # Makefile is used both in the module's top-level directory and in the
  420. # various machine-specific object directories. When included by the
  421. # machine-specific makefile, IS_OBJECT must be defined.
  422. d5 1
  423. a5 9
  424. # named in the DEFAULT variable.  For each operation in
  425. # "make {,install,lint,instlint,profile}", only the $(DEFAULT).md subdirectory
  426. # is touched.  Use "make all{,-install,-lint,-instlint,-profile}" to perform
  427. # makes in each machine-dependent directory, or
  428. #    make {,install,lint,instlint,profile}<x>
  429. # to perform these operations for machine-type <x>
  430. # Only one copy of the source is maintained, so "make install" or
  431. # "make all-install" will copy the source (both machine-dependent and
  432. # machine-independent) into the installed areas.
  433. d15 1
  434. a15 1
  435. # $Header: Makefile.kernel,v 1.4 88/04/29 18:29:00 deboor Exp $ SPRITE (Berkeley)
  436. d21 9
  437. a29 3
  438. CSRCS        = @@(CSRCS)
  439. SSRCS        = @@(SSRCS)
  440. SRCS        = ${SSRCS} ${CSRCS}
  441. d33 2
  442. a34 3
  443. HDRS         = @@(HDRS)
  444. PUBHDRS     = @@(PUBHDRS)
  445. DEFAULT        = sun2
  446. d36 1
  447. a36 7
  448. #
  449. # If not being included by an object directory, include the kernel makefile
  450. # to define all our targets, etc.
  451. #
  452. #ifndef IS_OBJECT
  453. #include    <kernel.mk>
  454. #endif  IS_OBJECT
  455. d38 13
  456. @
  457.  
  458.  
  459. 1.4
  460. log
  461. @Added MACHINES variable.
  462. @
  463. text
  464. @d7 10
  465. a16 6
  466. # The default operation is to make the object file for sun2's.  Foreach
  467. # operation in "make {,install,lint,instlint}", only the Object.sun2 
  468. # subdirectory is touched.  Use "make all{,-install,-lint,-instlint}" to
  469. # perform makes in each machine-dependent object directory.  Only one copy
  470. # of the source is maintained, so "make install" or "make all-install" will 
  471. # copy the source into the installed areas.
  472. d26 1
  473. a26 1
  474. # $Header: Makefile.kernel,v 1.3 88/03/31 17:14:09 deboor Exp $ SPRITE (Berkeley)
  475. @
  476.  
  477.  
  478. 1.3
  479. log
  480. @*** empty log message ***
  481. @
  482. text
  483. @d22 1
  484. a22 1
  485. # $Header: Makefile.kernel,v 1.2 88/03/24 20:23:15 deboor Exp $ SPRITE (Berkeley)
  486. d27 1
  487. @
  488.  
  489.  
  490. 1.2
  491. log
  492. @Adapted to mkmf
  493. @
  494. text
  495. @d22 1
  496. a22 1
  497. # $Header: Makefile.kernel,v 1.1 88/03/18 15:04:45 deboor Exp $ SPRITE (Berkeley)
  498. d29 1
  499. a29 1
  500. SRCS        = ${CSRCS} ${SSRCS}
  501. @
  502.  
  503.  
  504. 1.1
  505. log
  506. @Initial revision
  507. @
  508. text
  509. @d2 4
  510. a5 1
  511. # This is the prototype Makefile for kernel modules.
  512. d10 1
  513. a10 1
  514. # perform makes in each machine dependent object directory.  Only one copy
  515. d17 2
  516. a18 1
  517. # It was generated from @@(TEMPLATE) on @@(DATE)
  518. d22 1
  519. a22 1
  520. # $Header: Makefile.kernel,v 2.3 87/10/16 10:43:24 brent Exp $ SPRITE (Berkeley)
  521. d26 10
  522. a35 9
  523. MODULE = module-name
  524. ROOT = /sprite
  525. SPRITESRC = ..
  526. SPRITEHOME = /sprite
  527. LIB = ${SPRITESRC}/Object
  528. H =      ${SPRITESRC}/Include
  529. LINT =      ${SPRITESRC}/Lint
  530. INSTALLED=${SPRITESRC}/Installed/${MODULE}
  531. UPDATE = update
  532. d37 7
  533. a43 106
  534. CSRCS = C-file.c
  535. ASMSRCS = assembler-file.s
  536.  
  537. SRCS = ${CSRCS} ${ASMSRCS}
  538.  
  539. HDRS = header-file.h
  540.  
  541. PUBHDRS = header-file.h
  542.  
  543. default! sun2 .PRECIOUS
  544.  
  545. # "Make install" installs the source before the object.  This is because
  546. # make depend may get confused and have files depend on Include files rather
  547. # than header files in this directory, and doing an installhdrs after
  548. # making the object files might result in remaking all the object files a
  549. # second time.  
  550. install! installsrc installsun2 .EXPORT .PRECIOUS
  551.  
  552. lint: lintsun2 .PRECIOUS
  553.  
  554. profile! profilesun2 .PRECIOUS
  555.  
  556. instlint! instlintsun2 .PRECIOUS
  557.  
  558. all! sun2 sun3 .PRECIOUS
  559.  
  560. all-lint! lintsun2 lintsun3 .EXPORT .PRECIOUS
  561.  
  562. all-prof! profilesun2 profilesun3 .EXPORT .PRECIOUS
  563.  
  564. sun2 sun3! .EXPORT .PRECIOUS
  565.     cd Object.$@@; ${MAKE} ${MFLAGS} -l
  566.  
  567. lintsun2! .PRECIOUS
  568.     cd Object.sun2; ${MAKE} ${MFLAGS} -l lint
  569.  
  570. lintsun3! .PRECIOUS
  571.     cd Object.sun3; ${MAKE} ${MFLAGS} -l lint
  572.  
  573. profilesun2! .PRECIOUS
  574.     cd Object.sun2; ${MAKE} ${MFLAGS} -l profile
  575.  
  576. profilesun3! .PRECIOUS
  577.     cd Object.sun3; ${MAKE} ${MFLAGS} -l profile
  578.  
  579. tags: ${HDRS} ${CSRCS}
  580.     rm -f tags
  581.     ctags ${CTFLAGS} ${HDRS} ${CSRCS}
  582.  
  583. all-install! installsun2 installsun3 installsrc .PRECIOUS
  584.  
  585. all-instlint! instlintsun2 instlintsun3 .PRECIOUS
  586.  
  587. installhdrs! .PRECIOUS
  588.     @@${UPDATE} ${PUBHDRS} ${H}
  589.     @@${UPDATE} ${HDRS} ${INSTALLED}
  590.  
  591. installsrc! installhdrs .PRECIOUS
  592.     @@${UPDATE} ${SRCS} ${INSTALLED}
  593.  
  594. installobj! installsun2 installsun3 .PRECIOUS
  595.  
  596. installsun2! installsun2obj instlintsun2 .PRECIOUS
  597. installsun3! installsun3obj instlintsun3 .PRECIOUS
  598.  
  599. installsun2obj! sun2 .PRECIOUS
  600.     (cd Object.sun2; ${MAKE} ${MFLAGS} -l installobj)
  601.  
  602. installsun3obj! sun3 .PRECIOUS
  603.     (cd Object.sun3; ${MAKE} ${MFLAGS} -l installobj)
  604.  
  605. instlintsun2! ${LINT}/sun2/${MODULE}.ln .PRECIOUS
  606.  
  607. instlintsun3! ${LINT}/sun3/${MODULE}.ln .PRECIOUS
  608.  
  609. ${LINT}/sun2/${MODULE}.ln: ${CSRCS}
  610.     (cd Object.sun2; ${MAKE} ${MFLAGS} -l instlint)
  611.  
  612. ${LINT}/sun3/${MODULE}.ln: ${CSRCS}
  613.     (cd Object.sun3; ${MAKE} ${MFLAGS} -l instlint)
  614.  
  615. calls: ${CSRCS}
  616.     /sprite/local/cmds/calls ${IFLAGS} ${CSRCS} > calls
  617.  
  618. clean depend! .EXPORT .PRECIOUS
  619.     (cd Object.sun2; ${MAKE} ${MFLAGS} -l $@@)
  620.     (cd Object.sun3; ${MAKE} ${MFLAGS} -l $@@)
  621.  
  622. makemake! makemake2 makemake3 .EXPORT .PRECIOUS
  623.  
  624. makemake2! .PRECIOUS
  625.     (cd Object.sun2; makemake)
  626.  
  627. makemake3! .PRECIOUS
  628.     (cd Object.sun3; makemake)
  629.  
  630. # For rdist, take the standard kernel makefile.
  631. # Allow the user to specify extra flags (like -v) for the rdist via
  632. # the DISTFLAGS variable.
  633.  
  634. DISTFILE = /sprite/lib/misc/distfile.kernel
  635. DISTFLAGS = 
  636.  
  637. rdist! .PRECIOUS
  638.     rdist ${DISTFLAGS} -f ${DISTFILE} -d DIR=`pwd`
  639.  
  640. @
  641.